package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.RabbitProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class RabbitProviderController {

    @Resource
    private RabbitProvider provider;

    @GetMapping("/sendMessage")
    public String send(){
        return provider.send();
    }
}
